package vip.xiaonuo.smzq.modular.user.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import vip.xiaonuo.smzq.modular.user.entity.Position;
import vip.xiaonuo.smzq.modular.user.mapper.PositionMapper;
import vip.xiaonuo.smzq.modular.user.service.IPositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.xiaonuo.common.page.CommonPageRequest;

import javax.annotation.Resource;

/**
 * 职位 服务实现类
 *
 * @author sqq
 * @since 2024-04-22
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements IPositionService {

    @Resource
    private PositionMapper positionMapper;

    @Override
    public Page<Position> page(Position position) {
        QueryWrapper<Position> queryWrapper = new QueryWrapper<>();
        return this.page(CommonPageRequest.defaultPage(), queryWrapper);
    }
}
